package com.tarim.streetdance.mapper;

import com.tarim.streetdance.model.User;
import com.tarim.streetdance.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("UserMapper")
public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    //注册
    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    //修改用户信息
    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKeyWithBLOBs(User record);

    int updateByPrimaryKey(User record);

    //条件查询
    List<User> selectByCondition(User record);
    //登录
    User selectForLogin(User record);

    List<User> selectByQueryCondition(Criteria criteria);
    Long selectByQueryConditionCount(Criteria criteria);
}